<?php
class st_options_model extends stmodel_2_1{

    public function __construct($config) {
        parent::__construct ( $config );
        $this->setTableName($this->prefix.'st_options');
        $this->setPrimaryKey('id');
    }

    public function getID($user_id, $option){
        $query = "SELECT id FROM `{$this->_tableName}`
        WHERE `user_id` = {$user_id} AND `option_name` like('{$option}')
        ";
        return $this->get_var($query);
    }
}